home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
CH_COUNT.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
793b
|
37 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_ChCount( cInChar, cInStr ) --> nInteger
PARAMETERS:
cInChar : Character to count
cInStr : String to search
SHORT:
Count the number of times a character occurs in a string.
DESCRIPTION:
_ChCount() counts the number of times that a given character occurs in a
given string.
NOTE:
_ChCount() IS case sensitive.
EXAMPLE:
t = _ChCount('A','ABCADEFAGHIAJKL')
Result: t = 4
t = _ChCount('a','ABCADEFAGHIAJKL')
Result: t = 0 (REMEMBER: Case Sensitive)
******************************************************************************/